package com.wx.tgp.designpattern.FactoryModePattern.SimpleFactory;

/**
 * 除法运算类
 */
public class OperationDiv extends  Operation{

    public double number1;
    public double number2;
    public OperationDiv(double num1,double num2){
        this.number1 = num1;
        this.number2 = num2;
    }
    @Override
    public double getResult() {
        return number1 / number2;
    }
}
